﻿using System.Collections.Generic;

namespace testWX.Data
{
    /// <summary>
    /// 定义EmployeeProvider类的接口方法
    /// </summary>
    public interface IEmployeeProvider
    {
        /// <summary>
        /// 定义获取枚举全部Employee类对象的接口方法
        /// </summary>
        /// <returns>可枚举的全部Employee类对象</returns>
        IEnumerable<Employee> Get();

        /// <summary>
        /// 定义获取单个Employee类对象的接口方法
        /// </summary>
        /// <param name="id">Employee类对象的的id</param>
        /// <returns>单个Employee类对象</returns>
        Employee Single(int id);
    }
}
